package com.baichuan.zntx.domain.bo;

import com.baichuan.common.core.validate.AddGroup;
import com.baichuan.common.core.validate.EditGroup;
import com.baichuan.zntx.domain.Calibrate;
import com.baichuan.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 标定点管理业务对象 t_calibrate
 *
 * @author MaZhanliang
 * @date 2024-05-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Calibrate.class, reverseConvertGenerate = false)
public class CalibrateBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 标定点名称
     */
    @NotBlank(message = "标定点名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 经度
     */
    @NotNull(message = "经度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double longtitude;

    /**
     * 纬度
     */
    @NotNull(message = "纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double latitude;

    /**
     * 地图X坐标
     */
    @NotNull(message = "地图X坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double x;

    /**
     * 地图Y坐标
     */
    @NotNull(message = "地图Y坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double y;


}
